package com.zt.student.dao;

import com.zt.common.pojo.exam.Exam;
import com.zt.student.dto.ExamAnswerDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * description:
 * author:zt
 * date:2022-02-15
 */
@Mapper
public interface ExamDao {

    List<Exam> getExamByClassId(int classId);

    List<ExamAnswerDTO> getQuestionAndAnswer(@Param("examId") int examId, @Param("studentId") String studentId);

    List<String> getAnswerByQuestionId(@Param("examId") int examId, @Param("questionId") int questionId);

    int getClassStuNumber(int examId);
}
